package com.example.kliven.because.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Kliven on 16/1/15.
 */
public class MySQHelper extends SQLiteOpenHelper {

    private Context context;
    private String createTable = "create table userInfo(" +
            "id integer primary key autoincrement, " +
            "name text, " +
            "email text, " +
            "password text)";

    public MySQHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
        sqLiteDatabase.execSQL(createTable);
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
